package me.minicoral.service.impl;

import java.util.List;

import me.minicoral.action.Blogger;
import me.minicoral.dao.BloggerDao;
import me.minicoral.dao.impl.BloggerDaoImpl;
import me.minicoral.service.BloggerService;

public class BloggerServiceImpl implements BloggerService
{

	private BloggerDao dao = new BloggerDaoImpl();
	@Override
	public List<Blogger> findAllBlogger(String userId)
	{
		List<Blogger> bloggers = dao.findAllBloggers(userId);
		System.out.println(bloggers.size());
		return bloggers;
	}
	@Override
	public int addBlogger(Blogger blogger)
	{
		return dao.addBlogger(blogger);
	}

}
